package interfaceGrafica;

import negocios.*;
import javax.swing.JFrame;
import java.awt.Dimension;
import java.awt.GridLayout;

@SuppressWarnings ("serial") 
public class Janela extends JFrame {
	private Partida partida;

	public Janela(String jogador) {
		super();

		partida = new Partida(jogador);

		super.setUndecorated(true);
		super.setPreferredSize(new Dimension(800, 600));
		super.setResizable(false);
		super.getContentPane().setLayout(new GridLayout());
		super.setContentPane(new MenuPrincipal(this, partida));
		super.pack();
		super.setLocationRelativeTo(null);
	}
}
